import request from '@/utils/request'

/**
 * @description: 获取销售出库
 * @param {*} params
 */
export function getIpqcPatrolReport(params) {
  return request({
    url: '/ipqcqatrol/report/list',
    params
  })
}

/**
 * @description: 获取报告ID
 * @param {*} params
 */
export function getIpqcPatrolReportID(params) {
  return request({
    url: '/ipqcqatrol/report/reportid',
    params
  })
}

/**
 * @description: 新增巡检项目
 * @param {*} params
 */
export function addIpqcPatrolReport(data) {
  return request({
    url: '/ipqcqatrol/report/add',
    method: 'post',
    data
  })
}

/**
 * @description: 获取Ipqc巡检检验报告详情
 * @param {*} params
 */

export function getIpqcPatrolReportDetail(params) {
  return request({
    url: '/ipqcqatrol/report/detail',
    params
  })
}

/**
 * @description: 更新巡检项目
 * @param {*} params
 */
export function updateIpqcPatrolReport(data) {
  return request({
    url: '/ipqcqatrol/report/update',
    method: 'post',
    data
  })
}

/**
 * @description: 删除巡检项目
 * @param {*} params
 */

export function deleteIpqcPatrolReport(data) {
  return request({
    url: '/ipqcqatrol/report/delete',
    method: 'post',
    data
  })
}
